//获取应用实例
const app = getApp();

Page({
  data: {
    tiltxt:[],
    // 组件所需的参数
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '图片打印', //导航栏 中间的标题
    },
    // 此页面 页面内容距最顶部的距离
    height: app.globalData.height * 2 + 20,
  },
  onLoad() {
    let url = app.globalData.URL+'facility/type/list';
    let data = {};
    app.wxRequest('GET', url, data, (res) => {
      console.log(res.rows)
      let tiltxt=res.row;
      this.setData({
        tiltxt:tiltxt
      })
    }, (err) => {
      console.log(err.errMsg)
    })
  },
  upload_pho:function(){
    // /modelA/pages/drawings_printing/picture_upload/picture_upload
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/photo/photo',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  gobw_photo: function () {
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/bw_photo46/bw_photo46',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  gowedding_photos: function (e) {
    let id = e.target.id;
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/wedding_photos/wedding_photos?id='+id,
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  }, 
  personal_photos: function (e) {
    let id = e.target.id;
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/personal_photos/personal_photos?id='+id,
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  goid_hoto: function () {
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/id_hoto/id_hoto',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  }, 
  visa_photo: function() {
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/visa_photo/visa_photo',
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
  photo_splicing: function (e) {
    let id = e.target.id;
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/photo_splicing/photo_splicing?id='+id,
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  }, 
  goa6_photh: function(e) {
    let id = e.target.id;
    wx.navigateTo({
      url: '/modelA/pages/drawings_printing/a6_photh/a6_photh?id='+id,
      success: function (res) { },
      fail: function (res) { },
      complete: function (res) { },
    })
  },
})
